<?php
/*+++++++++++积分相关操作++++++++++++++++*/
$api->group(['namespace' => 'Credit'], function ($api){
    $api->get('topThree', 'IndexController@topThree'); //排行榜前三
    $api->get('monthCredit/{year?}/{month?}/{category?}', 'IndexController@monthCredit');//月度排行榜
    $api->get('yearCredit/{year?}/{category?}', 'IndexController@yearCredit');//年度排行榜
    $api->get('credit/{category?}', 'IndexController@credit');//总排行榜
    $api->get('category', 'IndexController@category');//漏洞类型
});



